package com.fxkj.cloud.drms.domain.mqtt;

import com.fxkj.cloud.dbs.common.model.DeviceBasicInfo;
import lombok.Getter;

import java.util.List;
import java.util.UUID;

/**
 * <p>description: </p>
 * @author ww
 * @date 2025/4/2 15:29
 */
@Getter
public class QueryDomain {
    private final UUID commandId;
    private final DeviceBasicInfo deviceBasicInfo;
    private final List<String> queryKeys;

    public QueryDomain(UUID commandId, DeviceBasicInfo deviceBasicInfo, List<String> queryKeys) {
        this.commandId = commandId;
        this.deviceBasicInfo = deviceBasicInfo;
        this.queryKeys = queryKeys;
    }

    public static QueryDomain create(DeviceBasicInfo deviceBasicInfo, List<String> queryKeys){
        return new QueryDomain(UUID.randomUUID(), deviceBasicInfo, queryKeys);
    }
}
